package com.xyu.gulimall.ware.dao;

import com.xyu.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 商品库存
 *
 * @author wangyufei
 * @email 2070522113@qq.com
 * @date 2021-05-04 11:39:08
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    List<WareSkuEntity> SelectBatch(List<WareSkuEntity> wareSku);

    void addStock(Long skuId, Long wareId, Integer skuNum);

    void updateBatch(WareSkuEntity skuEntity);
}
